package com.zhou.spring.cloud.balancer.feign;

import com.zhou.spring.cloud.balancer.feign.config.ProvincialPlatformConfiguration;
import com.zhou.spring.cloud.balancer.feign.mode.FinancialSystemRespDto;
import com.zhou.spring.cloud.balancer.feign.mode.PaymentInfoQueryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "financialSystemFeign", url = "http://csb/", configuration = {ProvincialPlatformConfiguration.class})
public interface FinancialSystemFeign {

    @PostMapping(headers = {
            "method=${financial.push:qinqing.use.finance.payment.info.save}",
            "Accept=application/json"
    })
    FinancialSystemRespDto push(@RequestBody PaymentInfoQueryDto dto);

}
